<?php
    if(C('LAYOUT_ON')) {
        echo '{__NOLAYOUT__}';
    }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>跳转提示</title>
<style>
*{margin: 0px;padding: 0px;}
img{border: 0 none;}
a{text-decoration:none;}
body{font-family: '微软雅黑';background: #fff;}
.g-bd{}
.g-bd .row-1{width: 750px; margin: 0 auto;margin-top: 15vw;}
.g-bd .row-1 .block{float: left;}
.g-bd .row-1 .info {height: 75px;margin: 90px 0 0 25px;width: 303px;}
.g-bd .row-1 .info h1{line-height: 36px; font-size: 30px;}
.g-bd .row-1 .info p{font-size: 12px;line-height: 50px;}
</style>
</head>
<body>

<div class="g-bd">
	<div class="row row-1">
		<?php if(isset($message)) {?>
			<div class="block pic"><img src="__COMMON__/img/pc_s.png"></div>
			<div class="block info">
				<h1><?php echo($message); ?></h1>
				等待 <b id="wait"><?php echo($waitSecond); ?></b> 秒钟，页面将自动<a id="href" href="<?php echo($jumpUrl); ?>">跳转</a>
			</div>
		<?php }else{?>
			<div class="block pic"><img src="__COMMON__/img/pc_e.png"></div>
			<div class="block info">
				<h1><?php echo($error); ?></h1>
				<p class="jump">
等待 <b id="wait"><?php echo($waitSecond); ?></b> 秒钟，页面将自动<a id="href" href="<?php echo($jumpUrl); ?>">跳转</a>
</p>
			</div>
		<?php }?>
		
	</div>
</div>
<script type="text/javascript">
(function(){
var wait = document.getElementById('wait'),href = document.getElementById('href').href;
var interval = setInterval(function(){
	var time = --wait.innerHTML;
	if(time <= 0) {
		location.href = href;
		clearInterval(interval);
	};
}, 1000);
})();
</script>
</body>
</html>